import { createMemoryHistory, createRouter } from 'vue-router'
import { Layout } from '@/route/layouts'
import {chartHome} from '@/route/modules/chartHome'

const routes = [
  {
    path: '/', name: 'Root', component: Layout,
    redirect:'/chartHome',
    children: [
      chartHome
    ],
    meta: {
    title: 'Root',
  },},
  // { path: '/about', component: AboutView },
]

export const router = createRouter({
  history: createMemoryHistory(),
  routes,
})